package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;


import java.util.List;

public interface UserService<delete> {

    public PageResult findPage(QueryPageBean queryPageBean);

    public Result insert(User user,Integer []checkitemIds);

    public Result getAllRole();

    public Result edit(Integer[] checkitemIds, User user);

    public Result findById(Integer userId);

    public Result findRoleIdsByUserId(Integer userId);

    public Result delete(Integer userId);

    Result getPermissions(String username);
}
